package com.yunpeng.aidevice.common.vo.org;

import java.io.Serializable;
import java.util.List;

/**
 * OrganizationNodeVO 组织树节点
 *
 * @author : Moore(hemw)
 * @date : 2020-04-13
 */
public class OrganizationNodeVO implements Serializable {

    /**
     * 节点代码
     */
    private String code;

    /**
     * 节点名称
     */
    private String name;

    /**
     * 父节点代码
     */
    private String parentCode;

    /**
     * 节点编号
     */
    private String number;

    /**
     * 子节点
     */
    private List<OrganizationNodeVO> childNode;

    public OrganizationNodeVO(String code, String name, String parentCode, String number) {
        this.code = code;
        this.name = name;
        this.parentCode = parentCode;
        this.number = number;
    }


    public OrganizationNodeVO() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public List<OrganizationNodeVO> getChildNode() {
        return childNode;
    }

    public void setChildNode(List<OrganizationNodeVO> childNode) {
        this.childNode = childNode;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "OrganizationNodeVO{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", parentCode='" + parentCode + '\'' +
                ", number='" + number + '\'' +
                ", childNode=" + childNode +
                '}';
    }
}
